package com.example.demo.pojo;

import java.util.ArrayList;

/**
 * @program:IntelliJ IDEA
 * @Description:基因类
 * @author:Mr.CheCheHuiBujianO
 * @data: 2023/5/24 15:24
 */
public class Gene {
    //基因位点
    public ArrayList<Integer> geneList = new ArrayList<>();
    public int len = 28; //染色体长度

    //染色体构造方法
    public Gene() {
        for (int i = 0; i < len; i++) {
            geneList.add(0);
        }
    }

    public int getLen() {
        return len;
    }

    public void setLen(int len) {
        this.len = len;
    }
}
